package com.mankind.ssm.mapper;

import com.mankind.ssm.pojo.Permission;

import java.util.List;

public interface PermissionMapper {
    int deleteByPrimaryKey(Integer permissionId);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer permissionId);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    int getTotalNumber();

    int getFuzzyQueryTotalNumber(String text);

    List<Permission> findByPage(Integer start, Integer length);

    List<Permission> fuzzyQueryByPage(Integer start,Integer length,String text);

    List<Permission> selectAll();
}